<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Plik źródłowy ui.h (r58/r57)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
<h1>ui.h (r58/r57)</h1><a href="ui_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    Aquamat - Sterownik akwariowy Open Source</span>
<a name="l00003"></a>00003 <span class="comment">    Copyright (C) 2009 Wojciech Todryk (wojciech@todryk.pl)</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This program is free software; you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment">    the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">    (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment">    along with this program; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment">    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00018"></a>00018 <span class="comment">    </span>
<a name="l00019"></a>00019 <span class="comment">    $Id: ui.h 46 2009-03-19 21:19:39Z musashi@todryk.pl $</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00026"></a><a class="code" href="ui_8h.html#a8bc7610e042cb3e14851bdef4152587b">00026</a> <span class="preprocessor">#define UI_KEY_UP_PIN 4                     </span>
<a name="l00027"></a><a class="code" href="ui_8h.html#a2be6730f2984e9c4db05a352ac0e0c1e">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_KEY_DOWN_PIN 5</span>
<a name="l00028"></a><a class="code" href="ui_8h.html#a1d21b8b2a04e9b9893a2dd76b160bcf5">00028</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_KEY_ESC_PIN 6</span>
<a name="l00029"></a><a class="code" href="ui_8h.html#a24bd9f98392a97d05be5fe7aa0c6b9e3">00029</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_KEY_SET_PIN 7</span>
<a name="l00030"></a><a class="code" href="ui_8h.html#a87ccb777a5fd2471e563133ed2e3c6cb">00030</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_KEYPAD_PORT B</span>
<a name="l00031"></a><a class="code" href="ui_8h.html#a668b6239a272995ed0d64bf6630beb9a">00031</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_PORTOUT PORT(UI_KEYPAD_PORT)</span>
<a name="l00032"></a><a class="code" href="ui_8h.html#afe8110d4bfc2e7580194879a4bd94fde">00032</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_PORTIN  pin(UI_KEYPAD_PORT)</span>
<a name="l00033"></a><a class="code" href="ui_8h.html#a29f7d06481a32816c8934c2209d04966">00033</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_DDR     DDR(UI_KEYPAD_PORT)</span>
<a name="l00034"></a><a class="code" href="ui_8h.html#aaa6f82896bcac13fed71d02ba6827ec3">00034</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_KEYPAD_MASK 0xF0</span>
<a name="l00035"></a><a class="code" href="ui_8h.html#ad6475873c496efca5d0998c55159ed20">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define UI_KEYPAD_DELAY_READ 0x20</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a><a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47">00037</a> <span class="keyword">enum</span> <a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47">UI_MENU</a> {<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47ac0f982a655b5ea39ae0384edf7caba7e">STATUS_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47a9071d3958a1e38780763917f17fea82f">ALARMS_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47a481d426817044737142203276caba16d">OUTPUTS_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47a398d979ce38cef9310ad38b572b6580b">AD_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47a8327be890e8547d542062c3be9027116">TEMP_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47a3e270f96001fb95e0daaaad71f0f7770">TIME_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47aec6d6b3571d15b2a9d452c8499240237">TIMERS_MENU</a>,<a class="code" href="ui_8h.html#ae8dbfedf20c9bb1d67d47cd465caeb47acc0c8ded09dcd23867309faa21283bf3">TIMERSV_MENU</a>};
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a42bb09ef137aaeb1733173f3a88ccc85">ui_init</a>(<span class="keywordtype">void</span>);
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#af3c175c1d8ee52f3a59b94a92c37b5ec">ui_key_pressed</a>(<span class="keywordtype">void</span>);
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a261433f1e147f1713a34d3cafc1cdfec">ui_menu_0</a>(<span class="keywordtype">void</span>);
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="comment">/* ----------------------------------------------------- Status */</span>
<a name="l00044"></a>00044 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ad673eb898192d897296be7180e12a3f0">status_rotate</a> (<span class="keywordtype">void</span>);
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ad0f8a45b647a19aeb0fd02d5df73bdea">status_outputs</a>(<span class="keywordtype">void</span>);
<a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#af9103799b97013d54c189d01bae03ecf">status_temp</a>(<span class="keywordtype">void</span>);
<a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a1f608d42ff13ffd0b522978fb63d9c14">status_ad</a>(<span class="keywordtype">void</span>);
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a489df93325c14703b894344ca56fba28">lcd_temp_sensor</a>(uint8_t t);
<a name="l00049"></a>00049 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a688edbf1195a1a80208eced1c625dc95">lcd_clock</a>(<span class="keywordtype">void</span>);
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a9781f57199670abee5b88f9fc98fd888">lcd_outputs_status</a>(<span class="keywordtype">void</span>);
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a942af510d86cfa6a4dc2611d9ab0112f">lcd_clear_temp_indicators</a>(<span class="keywordtype">void</span>);
<a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a8494421cf6066bba1ce97f072c9851d1">diplay_MIT</a>(<span class="keyword">struct</span> <a class="code" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a> *mit);
<a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#aabaa5cc386bf53e04bf987409f32439b">display_out_long</a>(uint8_t <span class="keywordtype">id</span>);
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a9e48a35e8d1ee6462f2c404dcf579ca6">display_unit_label</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s);
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#abb1d2edd6ed0b1a3876e1d6155065ba6">display_break_line</a>(uint8_t before,uint8_t after);
<a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a52aeef495610fff4fcc931b89452d0e3">display_temp_value</a>(<a class="code" href="aquamat_8h.html#a1540f4879d7cf61a5045f830883d843b">TEMP</a> t);
<a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a76c044391933890da715acc16721409a">lcd_wday_display</a>(uint8_t);
<a name="l00058"></a>00058 <span class="comment">/* ------------------------------------------------------Time */</span>
<a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a324c355035969fa7913dd13e124f8a47">ui_time_set_day</a>(<span class="keywordtype">void</span>);
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ab121cb63098b89109a1ec226a08fcd90">ui_time_set_hours</a>(<span class="keywordtype">void</span>);
<a name="l00061"></a>00061 <span class="comment">/* -----------------------------------------------------Temp */</span>
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#af67f5d7a5e679c3e32d036f1f6ce1710">ui_temp_status_display</a>(<span class="keywordtype">void</span>);
<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a5e44c7a30fff13412c1ed4894e80ccea">ui_temp_settings_display</a>(<span class="keywordtype">void</span>);
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#accb8f8e59706132ba3780cfc5d5f1670">ui_temp_outputs_cooling_display</a>(<span class="keywordtype">void</span>);
<a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ab18c95aef84a3f6b6a47478dee58e60d">ui_temp_outputs_heating_display</a>(<span class="keywordtype">void</span>);
<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ad022466e13a0def17cf50e3a8e7292d4">ui_temp_param_display</a>(<span class="keywordtype">void</span>);
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#afabff4b2643e52c00b53af15cf30895c">ui_temp_sensor_discover</a>(<span class="keywordtype">void</span>);
<a name="l00068"></a>00068 <span class="comment">/* -----------------------------------------------------Outputs */</span>
<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#aa81fe9069cb99d9f6e6b79eefe9d58ea">ui_outputs_status_display</a>(<span class="keywordtype">void</span>);
<a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a805fcd12b1672170e33d23d472dfcfdc">ui_outputs_settings_display</a>(<span class="keywordtype">void</span>);
<a name="l00071"></a>00071 <span class="comment">/* ----------------------------------------------------- AD --*/</span>
<a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a41ba7eee615eb200127f885f283e2750">ui_topoff_settings_display</a>(<span class="keywordtype">void</span>);
<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ae3937cb79f21f296d18924c8a15cf373">ui_topoff_clear_max_run</a>(<span class="keywordtype">void</span>);
<a name="l00074"></a>00074 <span class="comment">/* ----------------------------------------------------- timery */</span>
<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#aee76ed738b71f1c08649c7a62b497667">ui_timersv_settings_display</a>(<span class="keywordtype">void</span>);
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#a9b43591b6ffea74cbac9ccab5e058631">ui_timers_settings_display</a>(<span class="keywordtype">void</span>);
<a name="l00077"></a>00077 <span class="comment">/* ----------------------------------------------------- alarmy */</span>
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ae6cd8e92ca2b8080c91f47da0b8d0b40">ui_alarms_display</a>(<span class="keywordtype">void</span>);
<a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#ac812f45bec9db0fdc8b39de66278cffb">ui_alarms_clear</a>(<span class="keywordtype">void</span>);
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="ui_8c.html#aeb976028f6f8a4856f8291d010f06ab9">ui_alarms_block</a>(<span class="keywordtype">void</span>);
<a name="l00081"></a>00081 <span class="comment">/* ------------------------------------------------------------ */</span>
<a name="l00082"></a>00082 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keyword">enum</span> <a class="code" href="menu_8h.html#ae3ccb8a528e1570cbd7e5d9c62922efb">MENU_KEY</a> <a class="code" href="menu_8h.html#a9a92d0429a393370e8f8455b223fefa8">key_pressed</a>;
<a name="l00083"></a>00083 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="ui_8c.html#abdb9a37bf59245a8033c4b54ad16f1d1">counterKey</a>;
<a name="l00084"></a>00084 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="ui_8h.html#a2ee52e066c275604e171ac9223149fee">back_light_counter</a>;
<a name="l00085"></a>00085 <span class="keyword">extern</span> <a class="code" href="aquamat_8h.html#a66c0b97fb738bc74a9484be2f2a3bd1c">FuncPtr</a> <a class="code" href="ui_8c.html#aa557fb6fdc5f2848729682d37e8f4dd1">FuncPtrTable</a>[];
<a name="l00086"></a>00086 
</pre></div></div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
